|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--com.caucho.server.http.FileServlet
Serves static files. The cache headers are automatically set on these files.
| Constructor Summary | |
FileServlet()
|
|
| Method Summary | |
void |
init(ServletConfig conf)
Called by the servlet container to indicate to a servlet that the servlet is being placed into service. |
void |
service(ServletRequest request,
ServletResponse response)
Called by the servlet container to allow the servlet to respond to a request. |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileServlet()
| Method Detail |
public void init(ServletConfig conf)
throws ServletException
GenericServletServlet.init(javax.servlet.ServletConfig).
This implementation stores the ServletConfig
object it receives from the servlet container for later use.
When overriding this form of the method, call
super.init(config).
init in class GenericServletjavax.servlet.GenericServletconfig - the ServletConfig object
that contains configutation
information for this servletServletException - if an exception occurs that
interrupts the servlet's normal
operationUnavailableException
public void service(ServletRequest request,
ServletResponse response)
throws ServletException,
java.io.IOException
GenericServletServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse).
This method is declared abstract so subclasses, such as
HttpServlet, must override it.
service in class GenericServletjavax.servlet.GenericServletreq - the ServletRequest object
that contains the client's requestres - the ServletResponse object
that will contain the servlet's responseServletException - if an exception occurs that
interferes with the servlet's
normal operation occurredjava.io.IOException - if an input or output
exception occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||